#coding:utf-8
from django.contrib import admin
from django.conf import settings
from django.conf.urls import patterns, include, url


#import APP/admin.py
admin.autodiscover()


urlpatterns = patterns('lovewith',
    #api
    (r'^api/weixin/', 'api.weixin_tools.receive_msg'),
    (r'^api/video_parse/', 'api.video_parser.parse_video_url'),
)




urlpatterns += patterns('',
    url(r'^$', 'lovewith.promote.views.home.get_home_data'),

    url(r'^promote/', include('lovewith.promote.urls')),

    url(r'^u/', include('lovewith.account.urls')),
    url(r'^share/', include('lovewith.share.urls')),

    url(r'^card/', include('lovewith.card.urls')),

    #订阅
    url(r'^subscribe/', include('lovewith.subscribe.urls')),
    #灵感板
    url(r'^album/', include('lovewith.album.urls')),
    #专题
    url(r'^magazine/', include('lovewith.magazine.urls')),
    #
    url(r'^site/', include('lovewith.website.urls')),
    #服务商
    url(r'^su/', include('lovewith.supplier.urls')),

    #url(r'^(?P<domain_prefix>[\w\d]{6,})/', include('lovewith.wedding.urls')),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^grappelli/', include('grappelli.urls')),
    url(r'^mt-admin/', include(admin.site.urls)),

    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
)